package ar.edu.itba.bundundu.domain;

import com.google.gdata.data.acl.AclEntry;
import com.google.gdata.data.calendar.CalendarAclRole;

public class FeedItem {
  public String email;
  public String level;
  public AclEntry aclentry;
  
  public FeedItem(String email, String level, AclEntry aclentry) {
    this.email = email;
    this.level = level;
    this.aclentry = aclentry;
  }
  
  public FeedItem(String email, String level) {
    this.email = email;
    this.level = level;
    this.aclentry = null;
  }
  
  public String getLevelPlainText(){
    String s = null;
    if(this.level.equals("owner")){
      s = "Make changes AND manage sharing";
    }else if(this.level.equals("editor")){
      s = "Make changes to events";
    }else if(this.level.equals("read")){
      s = "See all event details";
    }else if(this.level.equals("freebusy")){
      s = "See only free/busy (hide details)";
    }else
      s = this.level;
    return s;
  }
    
  

}
